package com.gosophia.conference.action.confPrepare;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.conferenceManagement.common.dto.DocumentDTO;
import com.gosophia.conferenceManagement.confPreparation.dto.ParticipatingNameListDTO;
import com.gosophia.conferenceManagement.confPreparation.ws.ConfPreparationWebService;
/**
 * 查看会务准备详细
 * @author wangxinbing
 * @since  2011-3-28
 *  Copyright (c) 2010 Gosophia corporation All Rights Reserved
 */
@SuppressWarnings("serial")
@Component("GetConfPrepareDetailAction")
@Scope("prototype")
public class GetConfPrepareDetailAction extends BaseSupportAction {
	@Autowired
	private ConfPreparationWebService confPreparationWebService;
	
	private List<ParticipatingNameListDTO> particiLists;
	
	private List<DocumentDTO> materials = new ArrayList<DocumentDTO>();
	private Long jobId;
	
    private String onlinePath;
	
	private String onlineVersion;
	
	private String onlineIsEdit = "unEdit"; 
	
	private DocumentDTO signTable;
	
	private DocumentDTO agenda;
	
	public String _execute() throws Exception{
		agenda =  confPreparationWebService.findAgendaByJobId(jobId);
		onlinePath = agenda.getDocumentPath();
		onlineVersion = agenda.getDocumentVersion();
		materials = confPreparationWebService.findMaterialsByJobId(jobId);
		particiLists = confPreparationWebService.findParticipatingNameListsByJobId(jobId);
		return SUCCESS;
	}

	public Long getJobId() {
		return jobId;
	}

	public void setJobId(Long jobId) {
		this.jobId = jobId;
	}

	public List<ParticipatingNameListDTO> getParticiLists() {
		return particiLists;
	}

	public void setParticiLists(List<ParticipatingNameListDTO> particiLists) {
		this.particiLists = particiLists;
	}

	public List<DocumentDTO> getMaterials() {
		return materials;
	}

	public void setMaterials(List<DocumentDTO> materials) {
		this.materials = materials;
	}

	public String getOnlinePath() {
		return onlinePath;
	}

	public void setOnlinePath(String onlinePath) {
		this.onlinePath = onlinePath;
	}

	public String getOnlineVersion() {
		return onlineVersion;
	}

	public void setOnlineVersion(String onlineVersion) {
		this.onlineVersion = onlineVersion;
	}

	public String getOnlineIsEdit() {
		return onlineIsEdit;
	}

	public void setOnlineIsEdit(String onlineIsEdit) {
		this.onlineIsEdit = onlineIsEdit;
	}

	public DocumentDTO getSignTable() {
		return signTable;
	}

	public void setSignTable(DocumentDTO signTable) {
		this.signTable = signTable;
	}

	public DocumentDTO getAgenda() {
		return agenda;
	}

	public void setAgenda(DocumentDTO agenda) {
		this.agenda = agenda;
	}
	
	

}
